<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <table class="layui-table timo-detail-table">
            <colgroup>
                <col width="100px"><col>
                <col width="100px"><col>
            </colgroup>
            <tbody>
                <tr>
                    <th>主键ID</th>
                    <td th:text="${messageInfo.id}"></td>
                    <th>所属城市</th>
                    <td th:text="${messageInfo.areaname}"></td>
                </tr>
                <tr>
                    <th>标题</th>
                    <td th:text="${messageInfo.title}"></td>
                    <th>发布地址</th>
                    <td th:text="${messageInfo.address}"></td>
                </tr>
                <tr>
                    <th>所属大类</th>
                    <td th:text="${messageInfo?.typeone?.title}"></td>
                    <th>所属小类</th>
                    <td th:text="${messageInfo?.typetwo?.title}"></td>
                </tr>
                <tr>
                    <th>发布人</th>
                    <td th:text="${messageInfo.member.nickname}"></td>
                    <th>发布时间</th>
                     <td th:text="${#dates.format(messageInfo.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                   
                </tr>
                <tr>
                    <th>帖子简介</th>
                    <td th:text="${messageInfo.details}" colspan="3"></td>
               
                </tr>
                <tr>
                    <th>图片</th>
                    <td colspan="3">
                    <div th:each="arrayS:${#strings.arraySplit(messageInfo.imgs,',')}">  
             <img class="img-responsive" alt="App Logo" th:src="${arrayS}" />
             </div>
                    
                    </td>
               
                </tr>
                <tr>
                    <th>发布人电话</th>
                    <td th:text="${messageInfo.pushPhone}"></td>
                    <th>是否置顶</th>
                     <td th:switch="${messageInfo.istop}">
                           <span th:case="0">否</span>
                           <span th:case="1">置顶</span></td>
                    
                </tr>
                 <tr th:if="${messageInfo.istop}">
                    <th>付费周期</th>
                    <td th:text="${messageInfo.dayValue}"></td>
                    <th>置顶时长</th>
                    <td th:text="${messageInfo.deadline}"></td>
                   </tr>
                 <tr th:if="${messageInfo.istop}">
                    <th>置顶费用</th>
                    <td th:text="${messageInfo.fee}"></td>
                    <th>支付状态</th>
                    <td th:text="${messageInfo.payStatus}"></td>
                </tr>
                <tr>
                    <th>访问量</th>
                    <td th:text="${messageInfo.readnum}"></td>
                    <th>收藏数</th>
                    <td th:text="${messageInfo.collectnum}"></td>
                </tr>
               
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>